<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td>
	<div class="pagenav" align="right"> 
        <table border="0" cellpadding="3" cellspacing="1" class="tborder">
          <tr> 
            <td class="vbmenu_control" style="font-weight:normal">Page <{$out.page}> of <{$out.pageCount}></td>
			<{if $out.pageCount>=1}>
				<td class="alt1"><a class="smallfont" href="<{$out.href}>&page=1" ><strong>&laquo;</strong>First</a></td>
			    <td class="alt2"><a class="smallfont" href="<{$out.href}>&page=<{if $out.page-1 > 0}><{$out.page-1}><{else}>1<{/if}>">&lt;</a></td>
				<{if $out.pageDisplay+$out.page<=$out.pageCount}>
					<{section name=loop loop=$out.pageDisplay}>
						<{if $smarty.section.loop.index+$out.page eq $out.page}>
							<td class="alt2"><span class="smallfont" ><{$smarty.section.loop.index+$out.page}></span></td>
						<{else}>
							<td class="alt1"><strong><a class="smallfont" href="<{$out.href}>&page=<{$smarty.section.loop.index+$out.page}>" ><{$smarty.section.loop.index+$out.page}></a></strong></td>
						<{/if}>
					<{/section}>
				<{elseif $out.pageCount-$out.page>0}>
					<{section name=loop loop=$out.pageCount-$out.page+1}>
						<{if $smarty.section.loop.index+$out.page eq $out.page}>
							<td class="alt2"><span class="smallfont" ><{$smarty.section.loop.index+$out.page}></span></td>
						<{else}>
							<td class="alt1"><strong><a class="smallfont" href="<{$out.href}>&page=<{$smarty.section.loop.index+$out.page}>" ><{$smarty.section.loop.index+$out.page}></a></strong></td>
						<{/if}>
					<{/section}>
				<{else}>
					<td class="alt2"><span class="smallfont" ><{$out.page}></span></td>
				<{/if}>
					
				<td class="alt1">
					<a class="smallfont" href="<{$out.href}>&page=<{if $out.page+1 <= $out.pageCount}><{$out.page+1}><{else}><{$out.pageCount}><{/if}>" >&gt;</a>
				</td>
				<td class="alt1">
					<a class="smallfont" href="<{$out.href}>&page=<{$out.pageCount}>" >Last<strong>&raquo;</strong></a>
				</td>
				<td class="vbmenu_control" title="#">
				<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="3" />
				<input type="button" class="button" id="pagenav_ibtn" value="Go" onclick = "getThisPage()"/>
				</td>

			<{/if}>
          </tr>
        </table>
      </div></td>
  </tr>
</table>
<script language = 'javascript'>
function getThisPage(){
	var page_count = <{$out.pageCount}>;
	var page_href = '<{$out.href}>';
	var t = document.getElementById("pagenav_itxt").value;
	if(t > 0 && t <= page_count ){
		document.location.href = page_href+"&page="+t;
	} else {
		alert("错误的页!!!");
	}
}
</script>
